CC="xcrun -sdk iphonesimulator clang"
export -n AS
CFLAGS="-arch x86_64 -fembed-bitcode -miphonesimulator-version-min=7.0"
ASFLAGS=
CXXFLAGS="$CFLAGS"
LDFLAGS="$CFLAGS"

CC=$CC ./configure \
--enable-static \
--enable-pic \
--disable-shared \
--disable-asm \
--extra-cflags="$CFLAGS" \
--extra-asflags="$ASFLAGS" \
--extra-ldflags="$LDFLAGS" \
--prefix=`pwd`/build_out/x264/thin/x86_64

make clean
make -j8
make install
